﻿
using BCCommon;
using BCCommon.Enums;
using BCData.Common.Service.WebsiteServiceType;
using BCDto.Common.Service.WebsiteServiceType;
using BCDto.Sim.Admin.Admin;
using BCEntity.Common.Service.WebsiteServiceType;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.Common.Service.WebsiteServiceType
{
    /// <summary>
    /// 官网服务类型
    /// </summary>
    public interface IWebsiteServiceTypeService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="websiteServiceTypeId">官网服务类型Id</param>
        bool Exists(int websiteServiceTypeId);
        /// <summary>
        /// 添加官网服务类型
        /// </summary>
        /// <param name="requestDto">官网服务类型信息</param>
        /// <param name="adminDto"></param>
        WebsiteServiceTypeDto Add(WebsiteServiceTypeRequestDto requestDto, AdminDto adminDto);
        /// <summary>
        /// 更新官网服务类型
        /// </summary>
        /// <param name="putDto">官网服务类型信息</param>
        /// <param name="adminDto"></param>
        WebsiteServiceTypeDto Update(WebsiteServiceTypePutDto putDto, AdminDto adminDto);
        /// <summary>
        /// 删除官网服务类型
        /// </summary>
        /// <param name="websiteServiceTypeId">官网服务类型Id</param>
        bool Delete(int websiteServiceTypeId);
        /// <summary>
        /// 获取官网服务类型
        /// </summary>
        /// <param name="websiteServiceTypeId">官网服务类型Id</param>
        WebsiteServiceTypeDto Get(int websiteServiceTypeId);
        /// <summary>
        /// 获取官网服务类型列表
        /// </summary>
        IEnumerable<WebsiteServiceTypeDto> GetList();
        /// <summary>
        /// 获取官网服务类型分页列表
        /// </summary>
        /// <param name="serviceTypeName">服务类型名称</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">官网服务类型每页数据条数</param>
        PageableList<WebsiteServiceTypeDto> Query(string serviceTypeName, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        /// <summary>
		/// 启用官网服务类型
		/// </summary>
		/// <param name="websiteServiceTypeId">官网服务类型Id</param>
		bool Enabled(int websiteServiceTypeId);
        /// <summary>
        /// 禁用官网服务类型
        /// </summary>
        /// <param name="websiteServiceTypeId">官网服务类型Id</param>
        bool Disabled(int websiteServiceTypeId);
        #endregion  成员方法
    }
}